﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace FCS.Pattern
{
    class Program
    {
        /// <summary>
        /// Runs the pattern and bollard controllers in memory for easier debugging
        /// This removes the need to reinstall the service constantly
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            PatternController pc = new PatternController();
            BollardController bc = new BollardController(true);

            Console.WriteLine("Start the pattern controller");
            pc.StartPattern();

            Console.WriteLine("Start the bollard controller");
            bc.Run();

            Console.WriteLine("Press any key to stop");
            Console.Read();
            pc.Stop();
            bc.Stop();
        }
    }
}
